home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cfengine-1.5.3 / inputs / cf.users.example < prev    next >
Encoding:
Text File  |  1998-11-18  |  4.7 KB  |  149 lines

  1. ################################################################
  2. #
  3. # cf.users - for iu.hioslo.no
  4. #
  5. # This file contains user specific actions
  6. #
  7. #################################################################
  8.  
  9. ###
  10. #
  11. # BEGIN cf.users
  12. #
  13. ###
  14.  
  15. control:
  16.  
  17.  excludecopy = ( *.EXE *.avi *.ZIP *.AVI *.MP3 *.mp3 *.o *.dvi *.rar *.au *.WAV
  18.                  *.mov *.MOV  *.zip *.tar* core a.out *.au *.wav .* *.exe *.tgz 
  19.                  nystat-* acr-* DOC  *.class *.dll *.avi *.ttf *.pcf *.dll *.DLL *.lnk )
  20.  
  21. ignore:
  22.  
  23.     robot
  24.     TT_DB
  25.     dl
  26.     download
  27.  
  28.  
  29. tidy:
  30.  
  31.    nexus.Hr00.OnTheHour|emergency::
  32.  
  33.      #
  34.      # Tidy up users' home dirs
  35.      #
  36.  
  37. #     home                 pat=.rhosts                      age=0 # Security
  38.      home                 pat=core             r=inf       age=0
  39.      home                 pat=a.out            r=inf       age=1
  40.      home                 p=*%                 r=inf       age=2
  41.      home                 p=*~                 r=inf       age=2
  42.      home                 p=#*                 r=inf       age=1    
  43.      home                 p=*.dvi              r=inf       age=14   type=ctime
  44.      home                 p=*.log              r=inf       age=2
  45.      home                 p=Log.*              r=inf       age=3
  46.      home                 p=*.EXE              r=inf       age=1
  47.      home                 p=*.exe              r=inf       age=1
  48.      home                 p=BAK                r=inf       age=1
  49.      home                 p=log                r=inf       age=0
  50.      home                 p=*.o                r=inf       age=2
  51.      home                 p=*.aux              r=inf       age=3
  52.      home                 p=*.zip              r=inf       age=7
  53.      home                 p=*.mp3              r=inf       age=2
  54.      home                 p=*.dll              r=inf       age=2
  55.      home/.deleted        p=*                  r=inf       age=0
  56.      home/.wastebacket    p=*                  r=inf       age=14
  57.      home/www             p=*~                 r=inf       age=1
  58.      home/Desktop/Trash   p=*                  r=inf       age=14
  59.  
  60.      #
  61.      # Clear the big cache files netscape creates
  62.      #
  63.  
  64.      home/.netscape-cache  p=cache????*         r=inf       age=0
  65.      home/.MCOM-cache      p=cache????*         r=inf       age=0
  66.      home/.netscape/cache  p=*                  r=inf       age=0
  67.  
  68.      dax.Hr06.OnTheHour::
  69.  
  70.      /iu/dax/backup*     p=*                  r=inf       age=15
  71.  
  72. #################################################################
  73.  
  74. files:
  75.  
  76.    AllHomeServers.Rest.Hr01::
  77.  
  78.      #
  79.      # Check users files are not writable to the world
  80.      # and there are no stale links (pointing nowhere)
  81.      #
  82.  
  83.      home mode=o-w recurse=inf action=fixall ignore=www links=tidy
  84.  
  85. #     home/.xsession mode=755 action=fixall
  86.      home/.cshrc    mode=755 action=fixall
  87.  
  88.  
  89.    nexus.Hr01.OnTheHour::
  90.  
  91.      /iu/nexus/ua/ulfu/www m=+644 recurse=inf action=fixall
  92.      /iu/nexus/ua/www/www  g=www m=664 r=inf action=fixall ignore=cgi-bin-public
  93.      /iu/nexus/ua/www/cgi-bin-public  m=775 r=inf g=www action=fixall
  94.  
  95.  
  96. #################################################################
  97.  
  98. copy:
  99.  
  100.    Hr00.OnTheHour::
  101.  
  102.    #
  103.    # Make sure each user has an up to date standard
  104.    # setup.  Cshrc just sources in a big standard file
  105.    # which is kept in ~user/../.setupfiles/cshrc
  106.    # to reduce disk wastage
  107.    #
  108.  
  109.    $(masterfiles)/lib/Cshrc    dest=home/.cshrc
  110.    $(masterfiles)/lib/tkgrc    dest=home/.tkgrc
  111.    $(masterfiles)/lib/fvwm2rc  dest=home/.fvwm2rc
  112.  
  113.   #
  114.   # No longer dist this
  115.   #
  116.  
  117.   #   $(masterfiles)/lib/xsession dest=home/.xsession mode=755
  118.  
  119.    #
  120.    # Do a backup of the user disks, excluding crap
  121.    #
  122.  
  123.    dax.Hr21.OnTheHour::
  124.  
  125.      /iu/nexus/u1 dest=/iu/dax/backup3/u1 r=inf size=<4mb backup=false server=nexus 
  126.                   action=silent ignore=WIN95
  127.      /iu/nexus/u2 dest=/iu/dax/backup3/u2 r=inf size=<4mb backup=false server=nexus 
  128.                   action=silent ignore=WIN95   
  129.      /iu/nexus/u3 dest=/iu/dax/backup3/u3 r=inf size=<4mb backup=false server=nexus 
  130.                   action=silent ignore=WIN95   
  131.      /iu/nexus/u4 dest=/iu/dax/backup3/u4 r=inf size=<4mb backup=false server=nexus 
  132.                   action=silent ignore=WIN95   
  133.  
  134.  
  135.    dax.Hr23.OnTheHour::
  136.  
  137.      /iu/nexus/ud dest=/iu/dax/backup3/ud r=inf size=<4mb backup=false action=silent 
  138.                   server=nexus exclude=.*
  139.      /iu/nexus/ua dest=/iu/dax/backup3/ua r=inf size=<4mb backup=false action=silent 
  140.                   server=nexus exclude=.*
  141.      /iu/nexus/ud/mark/www dest=/iu/dax/backup1/mark-www r=inf backup=false 
  142.                   action=silent server=nexus exclude=.*
  143.  
  144.  
  145. ###
  146. #
  147. # END cf.users
  148. #
  149. ###